package www.houdoudou.com.parent;

import com.houdoudou.com.owner.OwnerManagement;

import net.sf.json.JSONObject;

public class ParentManageOwner {

	public static JSONObject manageOwner(String jsonData){
		JSONObject result = new JSONObject();
		JSONObject jsonfrom= JSONObject.fromObject(jsonData);	
		
		JSONObject jsoncheck=ParentManager.loginCheck(jsonData);
		if(jsoncheck.getBoolean("ActionStatus")){
			result =OwnerManagement.managerOwner(jsonData);	
		}else{
			result.put("ActionStatus", false);
			result.put("ErrorInfo", "登陆存储不正确");
		}
		
		return result;
	}
	
	
}
